package tp.pr5.mv.instructions.system;
import tp.pr5.mv.Instruction;
import tp.pr5.mv.Memory;
import tp.pr5.mv.Opcode;
import tp.pr5.mv.OperandStack;
import tp.pr5.mv.ProgramCounter;
import tp.pr5.mv.inout.InMethod;
import tp.pr5.mv.inout.OutMethod;
import tp.pr5.mv.traps.MVTrap;

public class HALT extends Instruction {
	
	public HALT() {
			
			op = Opcode.HALT;
		}
	
	public void execute ( OperandStack stack, Memory mem, ProgramCounter pc, InMethod inMethod, OutMethod outMethod ) throws MVTrap {
		
		pc.setPC(-999); // Seteamos el contador de programa a un valor basura para así parar la máquina virtual
		
		
	}


}
